package com.stxx.stiot2.domain;

import com.stxx.framwork.annotation.Id;
import com.stxx.framwork.constants.SceneTriggerType;
import com.stxx.stiot2.domain.ext.*;
import lombok.Data;
import org.noear.snack.annotation.ONodeAttr;

import java.io.Serializable;
import java.util.List;

@Data
public class Scene implements Serializable {
    @Id
    private Integer id;
    private String name;
    private String remark;
    private Boolean status;//0禁用，1启用
    private SceneTriggerType triggerType;
    private String triggerExpress; //触发表达式，手动为空，定时为cron,设备为设备属性逻辑表达式（value为所选signal的值）
    private String terminalCode;
    private String signal;
    private Long nextTime;
    private String profileCode;
    private Boolean alarmEnable;
    private AlarmSetting2 alarmSetting;
    private Boolean planEnable;
    private List<AlarmPlan> plan;
    private Boolean actionEnable;
    List<SceneActionFlow> actionFlow; //动作列表
}
